<?php

namespace Database\Seeders\Scm;

use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;

class ConfigSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        DB::table('scm_configs')->insert([
            'name' => '智慧社区配置表字段状态枚举',
            'config_key' => 'scm_configs_table_field_status_enums',
            'config_value' => json_encode([
                [
                    'id' => 0,
                    'text' => '禁用',
                    'label' => 'danger',
                    'is_default' => true,
                    'order' => 0,
                ],
                [
                    'id' => 1,
                    'text' => '正常',
                    'label' => 'success',
                    'is_default' => false,
                    'order' => 2,
                ],
                [
                    'id' => 2,
                    'text' => '测试',
                    'label' => 'waring',
                    'is_default' => false,
                    'order' => 0,
                ],
            ], JSON_UNESCAPED_SLASHES + JSON_UNESCAPED_UNICODE)
        ]);
    }
}
